package comment

import (
	"enjoy-shop/api/base"
	"enjoy-shop/formdata"
	"enjoy-shop/server/comment"
	"github.com/gin-gonic/gin"
)

func CommentLike(c *gin.Context) {
	var data formdata.CommentLike
	err := c.ShouldBindJSON(&data)
	if err != nil {
		base.RespData(c, "", err)
		return
	}
	likeComment, err := comment.LikeComment(&data)
	base.RespData(c, likeComment, err)
}
